﻿using GDGeek;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.SerriedCabinet
{
    [ExecuteInEditMode]
    public class RedioLocked : MonoBehaviour
    {
        [SerializeField]
        private float redio_ = 1.0f;

        // Update is called once per frame
        void Update()
        {
            if (this.transform.hasChanged) {
                var scale = this.transform.lossyScale;
               
                
                scale.y = scale.x * redio_;
                this.transform.setGlobalScale(scale);
            }
        }
    }
}